package ddd.controller;

import ddd.bo.UserLoginRequest;
import ddd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController("dongjh/v1")
public class UserController {

    @Autowired
    private UserService userService;


    @PostMapping("login")
    public Integer login(@RequestBody UserLoginRequest userLoginRequest){

        return userService.login(userLoginRequest);
    }


}
